if (MSVC)

ADD_DEFINITIONS (-DUNICODE -D_UNICODE -UMBCS -U_MBCS)

#SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /machine:x64 /entry:mainCRTStartup" )
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /machine:x64 /SUBSYSTEM:CONSOLE" )
ADD_DEFINITIONS("/wd4819")
ADD_DEFINITIONS("/wd4996")
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
add_definitions(-D_WIN32_WINNT=0x0501)

else (MSVC)

set (EXTRA_OPTIONS "-O3  -Wno-deprecated -fPIC -rdynamic -DLINUX") 

#message(STATUS ${CMAKE_BUILD_TYPE})

#if (${CMAKE_BUILD_TYPE})
#	message(STATUS "NOT ${CMAKE_BUILD_TYPE} -->")
#   set(CMAKE_BUILD_TYPE "Release")
#endif ()

#message(STATUS ${CMAKE_BUILD_TYPE})

endif (MSVC)

set(ADDRESS_MODEL 64)
set(NODE_TARGET x64)
